package com.dog.modules.upms.feign.fallback;


import com.dog.framework.core.enums.ResponseCodeEnum;
import com.dog.framework.core.model.ResponseResult;
import com.dog.modules.upms.dto.request.UserReqDto;
import com.dog.modules.upms.feign.CommentClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CommentClientFallback implements CommentClient {


    @Override
    public ResponseResult<Long> total(UserReqDto param) {
        log.error("Comment Server Fallback..........");
        return ResponseResult.fail(ResponseCodeEnum.SERVER_FALLBACK.getCode(), ResponseCodeEnum.SERVER_FALLBACK.getMsg());

    }
}
